<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>在线代码编辑器 - 1024导航</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css" rel="stylesheet">
    <script>
        tailwind.config = {
            theme: {
                extend: {
                    colors: {
                        primary: '#3B82F6',
                        secondary: '#10B981',
                        accent: '#F59E0B',
                        dark: '#1F2937',
                        light: '#F9FAFB'
                    },
                    fontFamily: {
                        sans: ['Inter', 'system-ui', 'sans-serif'],
                    },
                }
            }
        }
    </script>
    <style type="text/tailwindcss">
        @layer utilities {
            .content-auto {
                content-visibility: auto;
            }
            .card-hover {
                @apply transition-all duration-300 hover:shadow-lg hover:-translate-y-1;
            }
            .text-gradient {
                @apply bg-clip-text text-transparent bg-gradient-to-r from-primary to-secondary;
            }
        }
    </style>
</head>

<body class="bg-gray-50 font-sans text-gray-800">
    <!-- 顶部导航栏 -->
    <header class="sticky top-0 z-50 bg-white shadow-sm transition-all duration-300">
        <div class="container mx-auto px-4 py-3 flex justify-between items-center">
            <div class="flex items-center space-x-2">
                <div class="text-primary text-2xl font-bold">1024<span class="text-secondary">导航</span></div>
                <span class="hidden md:inline-block text-sm text-gray-500 bg-gray-100 px-2 py-1 rounded">v2.3</span>
            </div>

            <nav class="hidden md:flex items-center space-x-6">
                <a href="index.html" class="text-gray-600 hover:text-primary transition-colors">首页</a>
                <a href="resources.html" class="text-primary font-medium">资源</a>
                <a href="tools.html" class="text-gray-600 hover:text-primary transition-colors">工具</a>
                <a href="community.html" class="text-gray-600 hover:text-primary transition-colors">社区</a>
                <a href="about.html" class="text-gray-600 hover:text-primary transition-colors">关于</a>
            </nav>

            <div class="flex items-center space-x-3">
                <button
                    class="hidden md:block px-4 py-2 bg-primary text-white rounded-md hover:bg-primary/90 transition-colors">
                    <i class="fa fa-user-plus mr-1"></i> 登录
                </button>
                <button class="md:hidden text-gray-600 text-xl">
                    <i class="fa fa-bars"></i>
                </button>
            </div>
        </div>
    </header>

    <!-- 资源路径导航 -->
    <section class="py-4 bg-white border-b border-gray-100">
        <div class="container mx-auto px-4">
            <div class="text-sm text-gray-500">
                <a href="index.html" class="hover:text-primary">首页</a>
                <i class="fa fa-angle-right mx-2 text-gray-300"></i>
                <a href="resources.html" class="hover:text-primary">资源</a>
                <i class="fa fa-angle-right mx-2 text-gray-300"></i>
                <a href="resources.html?category=开发工具" class="hover:text-primary">开发工具</a>
                <i class="fa fa-angle-right mx-2 text-gray-300"></i>
                <span class="text-gray-700">在线代码编辑器</span>
            </div>
        </div>
    </section>

    <!-- 资源详情内容区 -->
    <section class="py-10">
        <div class="container mx-auto px-4">
            <div class="max-w-5xl mx-auto">
                <div class="grid grid-cols-1 lg:grid-cols-3 gap-8">
                    <!-- 左侧主内容 -->
                    <div class="lg:col-span-2">
                        <!-- 资源标题和基本信息 -->
                        <div class="bg-white rounded-xl shadow-sm p-6 mb-8">
                            <div class="flex items-start justify-between mb-4">
                                <div
                                    class="w-12 h-12 rounded-lg bg-blue-100 flex items-center justify-center text-primary">
                                    <i class="fa fa-code text-xl"></i>
                                </div>
                                <div class="flex space-x-2">
                                    <button
                                        class="flex items-center px-3 py-1.5 bg-gray-100 text-gray-700 rounded-full text-sm hover:bg-gray-200 transition-colors">
                                        <i class="fa fa-bookmark-o mr-1.5"></i> 收藏
                                    </button>
                                    <button
                                        class="flex items-center px-3 py-1.5 bg-gray-100 text-gray-700 rounded-full text-sm hover:bg-gray-200 transition-colors">
                                        <i class="fa fa-share-alt mr-1.5"></i> 分享
                                    </button>
                                </div>
                            </div>

                            <h1 class="text-2xl font-bold mb-3">在线代码编辑器</h1>

                            <div class="flex flex-wrap gap-2 mb-6">
                                <span class="text-xs bg-green-100 text-green-800 px-2.5 py-1 rounded-full">开发工具</span>
                                <span class="text-xs bg-gray-100 text-gray-700 px-2.5 py-1 rounded-full">在线工具</span>
                                <span class="text-xs bg-gray-100 text-gray-700 px-2.5 py-1 rounded-full">编程</span>
                                <span class="text-xs bg-gray-100 text-gray-700 px-2.5 py-1 rounded-full">多语言支持</span>
                            </div>

                            <div class="flex items-center text-sm text-gray-500 mb-6">
                                <div class="flex items-center mr-6">
                                    <i class="fa fa-eye mr-1.5"></i>
                                    <span>12.5k 浏览</span>
                                </div>
                                <div class="flex items-center mr-6">
                                    <i class="fa fa-star text-yellow-400 mr-1.5"></i>
                                    <span>4.8 (126评价)</span>
                                </div>
                                <div class="flex items-center mr-6">
                                    <i class="fa fa-calendar mr-1.5"></i>
                                    <span>2023-08-15 更新</span>
                                </div>
                                <div class="flex items-center">
                                    <i class="fa fa-user mr-1.5"></i>
                                    <span>编辑推荐</span>
                                </div>
                            </div>

                            <div class="border-t border-b border-gray-100 py-4 mb-6">
                                <p class="text-gray-700 mb-4">
                                    无需安装，在线编写和运行多种编程语言代码，支持实时预览。提供语法高亮、自动补全和代码分享功能，是学习和测试代码的理想工具。</p>

                                <a href="https://example.com/code-editor" target="_blank" rel="noopener noreferrer"
                                    class="inline-flex items-center px-5 py-2.5 bg-primary text-white rounded-md hover:bg-primary/90 transition-colors font-medium">
                                    <i class="fa fa-external-link mr-2"></i> 访问官网
                                </a>
                            </div>

                            <div>
                                <h3 class="font-semibold text-gray-800 mb-3">资源特点</h3>
                                <ul class="space-y-2 text-gray-700">
                                    <li class="flex items-start">
                                        <i class="fa fa-check-circle text-green-500 mt-1 mr-2"></i>
                                        <span>支持HTML、CSS、JavaScript、Python、Java等20+编程语言</span>
                                    </li>
                                    <li class="flex items-start">
                                        <i class="fa fa-check-circle text-green-500 mt-1 mr-2"></i>
                                        <span>实时运行和预览结果，无需额外配置环境</span>
                                    </li>
                                    <li class="flex items-start">
                                        <i class="fa fa-check-circle text-green-500 mt-1 mr-2"></i>
                                        <span>代码自动保存，支持云端同步和分享</span>
                                    </li>
                                    <li class="flex items-start">
                                        <i class="fa fa-check-circle text-green-500 mt-1 mr-2"></i>
                                        <span>内置多种代码模板和示例，快速上手</span>
                                    </li>
                                    <li class="flex items-start">
                                        <i class="fa fa-check-circle text-green-500 mt-1 mr-2"></i>
                                        <span>支持代码格式化、语法检查和错误提示</span>
                                    </li>
                                </ul>
                            </div>
                        </div>

                        <!-- 资源详情 -->
                        <div class="bg-white rounded-xl shadow-sm p-6 mb-8">
                            <h2 class="text-xl font-bold mb-4 flex items-center">
                                <i class="fa fa-info-circle text-primary mr-2"></i> 详细介绍
                            </h2>

                            <div class="prose max-w-none text-gray-700">
                                <p class="mb-4">
                                    在线代码编辑器是一个功能强大的Web应用，专为开发者和学习者设计。无论您是想快速测试一段代码，还是与他人分享您的编程作品，这个工具都能满足您的需求。</p>

                                <h3 class="text-lg font-semibold mt-6 mb-3">主要功能</h3>

                                <p class="mb-3">1.
                                    多语言支持：涵盖主流编程语言，包括前端三剑客(HTML/CSS/JavaScript)、后端语言(Python/Java/PHP等)以及数据科学相关语言。</p>

                                <p class="mb-3">2. 实时预览：编写的代码可以即时运行并查看结果，特别适合前端开发和小型算法测试。</p>

                                <p class="mb-3">3. 代码分享：支持生成临时链接分享代码，方便协作和寻求帮助。</p>

                                <p class="mb-3">4. 主题切换：提供多种代码编辑器主题，适应不同的使用习惯和环境。</p>

                                <h3 class="text-lg font-semibold mt-6 mb-3">使用场景</h3>

                                <ul class="list-disc pl-5 space-y-2 mb-4">
                                    <li>快速验证代码片段的正确性</li>
                                    <li>学习新编程语言时进行小实验</li>
                                    <li>分享代码示例给同事或朋友</li>
                                    <li>在不同设备上临时编写代码</li>
                                    <li>教学场景中演示代码运行效果</li>
                                </ul>

                                <div class="bg-blue-50 border-l-4 border-primary p-4 my-6 rounded-r">
                                    <p class="text-gray-700"><i class="fa fa-lightbulb-o text-primary mr-2"></i>
                                        提示：对于大型项目开发，建议使用本地IDE。此工具更适合快速测试和学习。
                                    </p>
                                </div>
                            </div>
                        </div>

                        <!-- 用户评价 -->
                        <div class="bg-white rounded-xl shadow-sm p-6 mb-8">
                            <div class="flex justify-between items-center mb-6">
                                <h2 class="text-xl font-bold flex items-center">
                                    <i class="fa fa-comments text-primary mr-2"></i> 用户评价
                                </h2>
                                <span class="text-sm text-gray-500">共 126 条评价</span>
                            </div>

                            <!-- 评分概览 -->
                            <div class="flex flex-col md:flex-row mb-8 pb-6 border-b border-gray-100">
                                <div class="flex flex-col items-center justify-center mb-6 md:mb-0 md:mr-10">
                                    <div class="text-4xl font-bold text-gray-800 mb-2">4.8</div>
                                    <div class="flex text-yellow-400 mb-2">
                                        <i class="fa fa-star"></i>
                                        <i class="fa fa-star"></i>
                                        <i class="fa fa-star"></i>
                                        <i class="fa fa-star"></i>
                                        <i class="fa fa-star-half-o"></i>
                                    </div>
                                    <div class="text-sm text-gray-500">基于 126 条评价</div>
                                </div>

                                <div class="flex-grow">
                                    <div class="space-y-2">
                                        <div class="flex items-center">
                                            <div class="w-16 text-sm text-gray-600">5 星</div>
                                            <div class="flex-grow mx-3 h-2 bg-gray-200 rounded-full overflow-hidden">
                                                <div class="h-full bg-yellow-400 rounded-full" style="width: 78%"></div>
                                            </div>
                                            <div class="w-8 text-sm text-gray-500">78%</div>
                                        </div>
                                        <div class="flex items-center">
                                            <div class="w-16 text-sm text-gray-600">4 星</div>
                                            <div class="flex-grow mx-3 h-2 bg-gray-200 rounded-full overflow-hidden">
                                                <div class="h-full bg-yellow-400 rounded-full" style="width: 15%"></div>
                                            </div>
                                            <div class="w-8 text-sm text-gray-500">15%</div>
                                        </div>
                                        <div class="flex items-center">
                                            <div class="w-16 text-sm text-gray-600">3 星</div>
                                            <div class="flex-grow mx-3 h-2 bg-gray-200 rounded-full overflow-hidden">
                                                <div class="h-full bg-yellow-400 rounded-full" style="width: 5%"></div>
                                            </div>
                                            <div class="w-8 text-sm text-gray-500">5%</div>
                                        </div>
                                        <div class="flex items-center">
                                            <div class="w-16 text-sm text-gray-600">2 星</div>
                                            <div class="flex-grow mx-3 h-2 bg-gray-200 rounded-full overflow-hidden">
                                                <div class="h-full bg-yellow-400 rounded-full" style="width: 1%"></div>
                                            </div>
                                            <div class="w-8 text-sm text-gray-500">1%</div>
                                        </div>
                                        <div class="flex items-center">
                                            <div class="w-16 text-sm text-gray-600">1 星</div>
                                            <div class="flex-grow mx-3 h-2 bg-gray-200 rounded-full overflow-hidden">
                                                <div class="h-full bg-yellow-400 rounded-full" style="width: 1%"></div>
                                            </div>
                                            <div class="w-8 text-sm text-gray-500">1%</div>
                                        </div>
                                    </div>
                                </div>
                            </div>

                            <!-- 评价输入框 -->
                            <div class="mb-8">
                                <h3 class="font-semibold mb-4">发表评价</h3>
                                <div class="flex mb-4">
                                    <div class="flex text-gray-300 text-xl mr-4">
                                        <i class="fa fa-star hover:text-yellow-400 cursor-pointer"></i>
                                        <i class="fa fa-star hover:text-yellow-400 cursor-pointer"></i>
                                        <i class="fa fa-star hover:text-yellow-400 cursor-pointer"></i>
                                        <i class="fa fa-star hover:text-yellow-400 cursor-pointer"></i>
                                        <i class="fa fa-star hover:text-yellow-400 cursor-pointer"></i>
                                    </div>
                                    <span class="text-sm text-gray-500 self-end">请给出您的评分</span>
                                </div>
                                <textarea placeholder="分享您的使用体验..."
                                    class="w-full px-4 py-3 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-primary/50 focus:border-primary transition-all resize-none"
                                    rows="3"></textarea>
                                <div class="flex justify-end mt-3">
                                    <button
                                        class="px-4 py-2 bg-primary text-white rounded-md hover:bg-primary/90 transition-colors">
                                        提交评价
                                    </button>
                                </div>
                            </div>

                            <!-- 评价列表 -->
                            <div class="space-y-6">
                                <!-- 评价1 -->
                                <div class="pb-6 border-b border-gray-100">
                                    <div class="flex justify-between mb-3">
                                        <div class="flex items-center">
                                            <img src="https://picsum.photos/id/1012/40/40" alt="用户头像"
                                                class="w-10 h-10 rounded-full mr-3">
                                            <div>
                                                <div class="font-medium">李开发</div>
                                                <div class="text-sm text-gray-500">2023-10-20</div>
                                            </div>
                                        </div>
                                        <div class="flex text-yellow-400">
                                            <i class="fa fa-star"></i>
                                            <i class="fa fa-star"></i>
                                            <i class="fa fa-star"></i>
                                            <i class="fa fa-star"></i>
                                            <i class="fa fa-star"></i>
                                        </div>
                                    </div>
                                    <p class="text-gray-700">
                                        非常好用的在线代码工具，特别是在没有安装开发环境的情况下，能快速测试代码。支持的语言也很全面，前端开发调试非常方便，强烈推荐！</p>
                                </div>

                                <!-- 评价2 -->
                                <div class="pb-6 border-b border-gray-100">
                                    <div class="flex justify-between mb-3">
                                        <div class="flex items-center">
                                            <img src="https://picsum.photos/id/1027/40/40" alt="用户头像"
                                                class="w-10 h-10 rounded-full mr-3">
                                            <div>
                                                <div class="font-medium">王程序</div>
                                                <div class="text-sm text-gray-500">2023-10-15</div>
                                            </div>
                                        </div>
                                        <div class="flex text-yellow-400">
                                            <i class="fa fa-star"></i>
                                            <i class="fa fa-star"></i>
                                            <i class="fa fa-star"></i>
                                            <i class="fa fa-star"></i>
                                            <i class="fa fa-star-o"></i>
                                        </div>
                                    </div>
                                    <p class="text-gray-700">
                                        功能很完善，代码补全和高亮做得不错。唯一的小缺点是有时加载速度有点慢，希望能优化一下。总体来说还是很推荐的，适合快速原型开发。</p>
                                </div>

                                <!-- 评价3 -->
                                <div>
                                    <div class="flex justify-between mb-3">
                                        <div class="flex items-center">
                                            <img src="https://picsum.photos/id/1025/40/40" alt="用户头像"
                                                class="w-10 h-10 rounded-full mr-3">
                                            <div>
                                                <div class="font-medium">张学习</div>
                                                <div class="text-sm text-gray-500">2023-10-08</div>
                                            </div>
                                        </div>
                                        <div class="flex text-yellow-400">
                                            <i class="fa fa-star"></i>
                                            <i class="fa fa-star"></i>
                                            <i class="fa fa-star"></i>
                                            <i class="fa fa-star"></i>
                                            <i class="fa fa-star-half-o"></i>
                                        </div>
                                    </div>
                                    <p class="text-gray-700">
                                        作为编程初学者，这个工具帮了我很大忙。不需要配置复杂的环境，打开浏览器就能练习代码，而且有实时反馈，对学习很有帮助。代码分享功能也很实用，可以方便地向老师和同学请教问题。
                                    </p>
                                </div>
                            </div>

                            <!-- 加载更多 -->
                            <div class="mt-6 text-center">
                                <button
                                    class="px-4 py-2 border border-gray-300 text-gray-700 rounded-md hover:bg-gray-50 transition-colors">
                                    加载更多评价
                                </button>
                            </div>
                        </div>
                    </div>

                    <!-- 右侧边栏 -->
                    <div class="lg:col-span-1">
                        <!-- 资源信息卡片 -->
                        <div class="bg-white rounded-xl shadow-sm p-5 mb-6 sticky top-24">
                            <h3 class="font-semibold text-gray-800 mb-4 pb-2 border-b border-gray-100">资源信息</h3>

                            <div class="space-y-3 text-sm">
                                <div class="flex">
                                    <div class="w-24 text-gray-500">官方网站</div>
                                    <div class="flex-grow">
                                        <a href="https://example.com/code-editor" target="_blank"
                                            rel="noopener noreferrer"
                                            class="text-primary hover:underline truncate">https://example.com/code-editor</a>
                                    </div>
                                </div>
                                <div class="flex">
                                    <div class="w-24 text-gray-500">资源类型</div>
                                    <div class="flex-grow text-gray-700">在线工具</div>
                                </div>
                                <div class="flex">
                                    <div class="w-24 text-gray-500">支持平台</div>
                                    <div class="flex-grow text-gray-700">Web浏览器</div>
                                </div>
                                <div class="flex">
                                    <div class="w-24 text-gray-500">收费模式</div>
                                    <div class="flex-grow text-gray-700">免费+付费增值</div>
                                </div>
                                <div class="flex">
                                    <div class="w-24 text-gray-500">语言支持</div>
                                    <div class="flex-grow text-gray-700">中文、英文</div>
                                </div>
                                <div class="flex">
                                    <div class="w-24 text-gray-500">首次收录</div>
                                    <div class="flex-grow text-gray-700">2023-05-20</div>
                                </div>
                                <div class="flex">
                                    <div class="w-24 text-gray-500">最后更新</div>
                                    <div class="flex-grow text-gray-700">2023-08-15</div>
                                </div>
                            </div>

                            <div class="mt-5 pt-4 border-t border-gray-100">
                                <button
                                    class="flex items-center text-sm text-gray-600 hover:text-primary transition-colors">
                                    <i class="fa fa-flag-o mr-1.5"></i>
                                    <span>举报该资源</span>
                                </button>
                            </div>
                        </div>
                    </div>
                </div>

                <!-- 相关推荐 -->
                <div class="mt-10">
                    <h2 class="text-xl font-bold mb-6 flex items-center">
                        <i class="fa fa-thumbs-up text-primary mr-2"></i> 相关推荐
                    </h2>

                    <div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-5">
                        <!-- 推荐资源1 -->
                        <div class="bg-white rounded-xl shadow-sm p-5 card-hover">
                            <div class="flex items-start justify-between mb-4">
                                <div
                                    class="w-10 h-10 rounded-lg bg-purple-100 flex items-center justify-center text-purple-600">
                                    <i class="fa fa-paint-brush"></i>
                                </div>
                                <span class="text-xs bg-purple-100 text-purple-800 px-2 py-1 rounded-full">设计资源</span>
                            </div>
                            <h3 class="font-semibold text-gray-800 mb-2">免费UI设计模板</h3>
                            <p class="text-gray-500 text-sm mb-4 line-clamp-2">精选高质量UI设计模板，可直接下载使用，支持Figma和Sketch</p>
                            <div class="flex justify-between items-center">
                                <span class="text-xs text-gray-400">
                                    <i class="fa fa-eye mr-1"></i> 8.3k
                                </span>
                                <a href="resource-detail.html" class="text-primary text-sm hover:underline">查看详情</a>
                            </div>
                        </div>

                        <!-- 推荐资源2 -->
                        <div class="bg-white rounded-xl shadow-sm p-5 card-hover">
                            <div class="flex items-start justify-between mb-4">
                                <div
                                    class="w-10 h-10 rounded-lg bg-amber-100 flex items-center justify-center text-amber-600">
                                    <i class="fa fa-graduation-cap"></i>
                                </div>
                                <span class="text-xs bg-amber-100 text-amber-800 px-2 py-1 rounded-full">学习教育</span>
                            </div>
                            <h3 class="font-semibold text-gray-800 mb-2">编程学习路径</h3>
                            <p class="text-gray-500 text-sm mb-4 line-clamp-2">从入门到精通的完整编程学习路径，包含视频教程和实战项目</p>
                            <div class="flex justify-between items-center">
                                <span class="text-xs text-gray-400">
                                    <i class="fa fa-eye mr-1"></i> 15.7k
                                </span>
                                <a href="resource-detail.html" class="text-primary text-sm hover:underline">查看详情</a>
                            </div>
                        </div>

                        <!-- 推荐资源3 -->
                        <div class="bg-white rounded-xl shadow-sm p-5 card-hover">
                            <div class="flex items-start justify-between mb-4">
                                <div
                                    class="w-10 h-10 rounded-lg bg-green-100 flex items-center justify-center text-green-600">
                                    <i class="fa fa-database"></i>
                                </div>
                                <span class="text-xs bg-green-100 text-green-800 px-2 py-1 rounded-full">开发工具</span>
                            </div>
                            <h3 class="font-semibold text-gray-800 mb-2">API接口测试工具</h3>
                            <p class="text-gray-500 text-sm mb-4 line-clamp-2">在线测试RESTful API和WebSocket，支持多种请求方式和参数配置
                            </p>
                            <div class="flex justify-between items-center">
                                <span class="text-xs text-gray-400">
                                    <i class="fa fa-eye mr-1"></i> 6.2k
                                </span>
                                <a href="resource-detail.html" class="text-primary text-sm hover:underline">查看详情</a>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- 底部区域 -->
    <footer class="bg-gray-800 text-gray-300 py-10 mt-10">
        <div class="container mx-auto px-4">
            <div class="grid grid-cols-1 md:grid-cols-4 gap-8">
                <div>
                    <h3 class="text-white text-lg font-semibold mb-4">1024导航</h3>
                    <p class="text-sm text-gray-400 mb-4">精选互联网优质资源，打造高效便捷的导航平台，助力你的工作与学习。</p>
                    <div class="flex space-x-4">
                        <a href="#" class="text-gray-400 hover:text-white transition-colors">
                            <i class="fa fa-github text-xl"></i>
                        </a>
                        <a href="#" class="text-gray-400 hover:text-white transition-colors">
                            <i class="fa fa-twitter text-xl"></i>
                        </a>
                        <a href="#" class="text-gray-400 hover:text-white transition-colors">
                            <i class="fa fa-weixin text-xl"></i>
                        </a>
                    </div>
                </div>

                <div>
                    <h3 class="text-white font-medium mb-4">快速链接</h3>
                    <ul class="space-y-2 text-sm">
                        <li><a href="index.html" class="text-gray-400 hover:text-white transition-colors">首页</a></li>
                        <li><a href="resources.html" class="text-gray-400 hover:text-white transition-colors">资源分类</a>
                        </li>
                        <li><a href="tools.html" class="text-gray-400 hover:text-white transition-colors">实用工具</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">最新收录</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">热门推荐</a></li>
                    </ul>
                </div>

                <div>
                    <h3 class="text-white font-medium mb-4">帮助支持</h3>
                    <ul class="space-y-2 text-sm">
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">使用指南</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">资源提交</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">常见问题</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">联系我们</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">举报不良信息</a></li>
                    </ul>
                </div>

                <div>
                    <h3 class="text-white font-medium mb-4">关于我们</h3>
                    <ul class="space-y-2 text-sm">
                        <li><a href="about.html" class="text-gray-400 hover:text-white transition-colors">网站介绍</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">隐私政策</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">使用条款</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">免责声明</a></li>
                    </ul>
                </div>
            </div>

            <div class="border-t border-gray-700 mt-8 pt-8 text-sm text-gray-400 text-center">
                <p>© 2023 1024导航 - 精选互联网优质资源</p>
            </div>
        </div>
    </footer>

    <script>
        // 评价星级交互
        document.querySelectorAll('.fa-star').forEach(star => {
            star.addEventListener('mouseover', function () {
                const index = Array.from(this.parentElement.children).indexOf(this);
                Array.from(this.parentElement.children).forEach((s, i) => {
                    if (i <= index) {
                        s.classList.remove('text-gray-300');
                        s.classList.add('text-yellow-400');
                    } else {
                        s.classList.remove('text-yellow-400');
                        s.classList.add('text-gray-300');
                    }
                });
            });
        });

        // 导航栏滚动效果
        window.addEventListener('scroll', function () {
            const header = document.querySelector('header');
            if (window.scrollY > 10) {
                header.classList.add('shadow');
            } else {
                header.classList.remove('shadow');
            }
        });
    </script>
</body>

</html>